﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Security;

namespace UtilsTests
{
	
	
	/// <summary>
	///This is a test class for StringExtensionsTest and is intended
	///to contain all StringExtensionsTest Unit Tests
	///</summary>
	[TestClass()]
	public class StringExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for AsString
		///</summary>
		[TestMethod()]
		public void AsStringTest()
		{
			IEnumerable<char> chars = null; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.AsString(chars);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Format
		///</summary>
		[TestMethod()]
		public void FormatTest()
		{
			string format = string.Empty; // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.Format(format, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for LowerIndices
		///</summary>
		[TestMethod()]
		public void LowerIndicesTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			int[] expected = null; // TODO: Initialize to an appropriate value
			int[] actual;
			actual = StringExtensions.LowerIndices(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Lowers
		///</summary>
		[TestMethod()]
		public void LowersTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.Lowers(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Lowers
		///</summary>
		[TestMethod()]
		public void LowersTest1()
		{
			char[] chars = null; // TODO: Initialize to an appropriate value
			char[] expected = null; // TODO: Initialize to an appropriate value
			char[] actual;
			actual = StringExtensions.Lowers(chars);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Reverse
		///</summary>
		[TestMethod()]
		public void ReverseTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.Reverse(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Separate
		///</summary>
		[TestMethod()]
		public void SeparateTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string anchor = string.Empty; // TODO: Initialize to an appropriate value
			bool before = false; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = StringExtensions.Separate(text, anchor, before);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for SplitWords
		///</summary>
		[TestMethod()]
		public void SplitWordsTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = StringExtensions.SplitWords(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ToSecureString
		///</summary>
		[TestMethod()]
		public void ToSecureStringTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			SecureString expected = null; // TODO: Initialize to an appropriate value
			SecureString actual;
			actual = StringExtensions.ToSecureString(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Trim
		///</summary>
		[TestMethod()]
		public void TrimTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.Trim(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Trim
		///</summary>
		[TestMethod()]
		public void TrimTest1()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			int num = 0; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.Trim(text, num);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for UpperIndices
		///</summary>
		[TestMethod()]
		public void UpperIndicesTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			int[] expected = null; // TODO: Initialize to an appropriate value
			int[] actual;
			actual = StringExtensions.UpperIndices(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Uppers
		///</summary>
		[TestMethod()]
		public void UppersTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.Uppers(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Uppers
		///</summary>
		[TestMethod()]
		public void UppersTest1()
		{
			char[] chars = null; // TODO: Initialize to an appropriate value
			char[] expected = null; // TODO: Initialize to an appropriate value
			char[] actual;
			actual = StringExtensions.Uppers(chars);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for WithArgs
		///</summary>
		[TestMethod()]
		public void WithArgsTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = StringExtensions.WithArgs(text, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
	}
}
